package com.mark.mall.web.platform.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 购物车表
 * </p>
 *
 * @author admin
 * @since 2021-03-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "TCart对象", description = "购物车表")
@TableName(value = "t_cart")
public class Cart implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "购物车id")
    @TableId("id")
    private String id;

    @ApiModelProperty(value = "购物车数量")
    @TableField("c_num")
    private Integer num;

    @ApiModelProperty(value = "会员id")
    @TableField("memberid")
    private String memberId;

    @ApiModelProperty(value = "物料id")
    @TableField("productid")
    private String productId;

    @ApiModelProperty(value = "创建时间")
    @TableField("c_createtime")
    private LocalDateTime createtime;


}
